<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src ="../../../../web/jquery-3.5.1.js"></script>
</head>
<body>
<ul id="test-ul">
    <li class="js">js</li>
    <li id="java" name="java">java</li>
    <p>来回切换文本</p>
    <button type="button" id="name">切换</button>
</ul>

<script>
    document.onreadystatechange = function(){

    }
    $('#test-ul li[name="java"]').innerHTML = "cs"
    $('#test-ul').html()

    $('#java').click(function() {
        $('#java').css("background-color","yellow");
        $('#java').add()
    })
    $(document).ready(function () {
        $('#name').click(function () {
            $('p').toggle();
        })
    })
</script>
</body>
</html>